<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_categories
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
$db = & JFactory::getDBO();
$loai 		= $params->get('loai',	1);
if($loai==1){
	echo $list[0]->id;
	$sql="SELECT * from #__content where catid='".$item->id."' and state=1";
	$db->setQuery($sql);
	$rows = $db->loadObjectList();
?>
<div class="jobposting">
    <h4>Testimonials</h4>
    <div id="testimonials-widget-1" class="widget-testimonials-scroll">
    <?php
	/*
	$item->id;
	$params->get('show_children', 0);
	count($item->getChildren());*/
	
	?>
        <div class="wtestimonial-item">
            <div class="wtestimonial-content">
            Nullam id dolor id nibh ultricies vehicula ut id elit. 
            Integer posuere erat a ante venenatis dapibus posuere velit aliquet. 
            Duis mollis, est non commodo luctus.
            </div>
        </div>
        <div class="wtestimonial-item">
            <div class="wtestimonial-content">
                Duis mollis, est non commodo luctus. 
                Aenean lacinia bibendum nulla sed consectetur. 
                Cras mattis consectetur purus sit amet fermentum.
            </div>
        </div>
        <div class="wtestimonial-item">
            <div class="wtestimonial-content">
                Cras mattis consectetur purus sit amet fermentum. 
                Donec id elit non mi porta gravida at eget metus. 
                Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                Vestibulum id ligula porta felis euismod semper.
            </div>
        </div>
    </div>
    <div id="testimonials-widget-1-prev" class="portfolio-widget-prev"></div>
    <div id="testimonials-widget-1-next" class="portfolio-widget-next"></div>
    <script type="text/javascript">
    jQuery("#testimonials-widget-1").carouFredSel({
        circular:true,
        responsive:true,
        auto:false,
        items:1,
        scroll:{
            items:"page",
            fx:"fade",
            duration:300,
            wipe:true
        },
        prev:{
            button:"#testimonials-widget-1-prev",
            key:"left"
        },
        next:{
            button:"#testimonials-widget-1-next",
            key:"right"
        }
    });
    </script>

</div>
<?php
}
if($loai==0){
?>
<ul class="categories-module<?php echo $moduleclass_sfx; ?>">
<?php
require JModuleHelper::getLayoutPath('mod_articles_categories', $params->get('layout', 'default').'_items');
?></ul>
<?php
}
?>